
//--------------------------------------------------------------------------------------------------------------------
// sets the specified style string for the specified object according to the web browser
function setStyleAttribute( elmtObject, styleString)
{
    var name = navigator.appName;
    // firefox returns Netscape
    //var ns = (name == 'Netscape') ? 1:0; 
    var ie = (name == 'Microsoft Internet Explorer') ? 1:0;
    if( ie )
    {
        elmtObject.style.setAttribute('cssText',styleString );
    }
    else
    {
        elmtObject.setAttribute('style',styleString );
    }
    return false;
};

//--------------------------------------------------------------------------------------------------------------------
// sets the specified class name
function setClassAttribute( elmtObject, className)
{
    var name = navigator.appName;
    // firefox returns Netscape
    //var ns = (name == 'Netscape') ? 1:0; 
    var ie = (name == 'Microsoft Internet Explorer') ? 1:0;
    if( ie )
    {
        elmtObject.setAttribute('className',className );
    }
    else
    {
        elmtObject.setAttribute('class',className );
    }
    return false;
};
